<?php 
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Common extends CI_Controller {
	
	public function __construct(){
		parent::__construct();
		$this->output->set_header('Content-Type:text/html;charset=UTF-8');
	}
	
	
	public function header(){
		$this->load->view('common/header',array('header'=>'测试'));
	}
	
	public function footer(){
		$this->load->view('common/footer',array('footer'=>'测试'));
	}
	
	public function content($filename){
		$this->load->view($filename,$content);
	}
	
	public function render($filename,$content){
		$this -> header();
		$this -> content($filename,$content);
		$this -> footer();
	}
	
}
